package demo10.config;


import demo10.controller.UserController;
import org.springframework.context.ApplicationContext;
import org.springframework.context.annotation.AnnotationConfigApplicationContext;

public class Text {
    public static void main(String[] args) {
        ApplicationContext a = new AnnotationConfigApplicationContext(SpringConfig.class);
        UserController bean = a.getBean(UserController.class);
        bean.addUser();

    }
}
